<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-	Type" content="text/html; charset=utf-8">

<title>房屋客户管理系统</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/form.css">
<script src="${pageContext.request.contextPath}/js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/locale/easyui-lang-zh_CN.js"></script>
<script  type="text/javascript"src="${pageContext.request.contextPath}/js/tinymce/tinymce.min.js"></script>
<script  type="text/javascript"src="${pageContext.request.contextPath}/js/tinymce/langs/zh_CN.js"></script>
<script  type="text/javascript"src="${pageContext.request.contextPath}/js/RGraph/RGraph.common.core.js"></script>
<script  type="text/javascript"src="${pageContext.request.contextPath}/js/RGraph/RGraph.bar.js"></script>
<script  type="text/javascript"src="${pageContext.request.contextPath}/js/RGraph/RGraph.common.key.js"></script>
<script type="text/javascript">
var myDate = new Date();
$(function(){
	$('#showdate').text("今天是："+myDate.getFullYear()+ "-" + (myDate.getMonth()+1)+"-"+myDate.getDate());
	showTime();
	
/* 	$('#main').tabs({onSelect:function(title,index){
			if (index == 0) {
				var tab = $('#main').tabs('getSelected');  // get selected panel
				$('#main').tabs('update', {
					tab: tab,
					options: {
						title: title,
						href: '${pageContext.request.contextPath}/sy/index.html'  // the new content URL
					}
				});
			}
		
	}});*/
}) 

function showTime(){
	myDate = new Date();
	$('#showtime').text(myDate.getHours()+ ":" +((myDate.getMinutes()<10)?"0"+myDate.getMinutes():myDate.getMinutes())+":"+myDate.getSeconds());
}
setInterval("showTime()",1000);

function exit(){
	window.location.href = "http://${header["Host"]}${pageContext.request.contextPath}";
}
</script>
</head>
<body>

 <div id="main" class="easyui-tabs" style="width:auto;height:auto;"  data-options="tools:'#tab-tools'">
 		<div title="首页" style="padding:10px" data-options="href:'sy/index.html',border:false,closed:true">
		</div>
		<%--  
		<div title="我的收藏" style="padding:10px" data-options="href:'favorite/viewList.html',border:false,closed:true">
		</div>
			--%>
		<div title="自我管理" style="padding:10px" data-options="href:'employee/entrySelf.html',border:false,closed:true">
		</div>
		
		<c:if test="${sessionScope.level == 'admin' || sessionScope.level == 'manager'}">
			<div title="业绩管理" style="padding:10px" data-options="href:'kpi/index.html',border:false,closed:true">
			</div>
			<div title="内容管理" style="padding:10px" data-options="href:'content/index.html',border:false,closed:true">
			</div>
		</c:if>
		<div title="系统设置" style="padding:10px" data-options="href:'config/index.html',border:false,closed:true">
		</div>
	</div>

<div id="tab-tools" style="font-size:12px;">
	你好: ${e_sn}
	<label id="showdate"></label> <label id="showtime"></label>
	<a href="javascript:void(0)"   onclick="exit()">退出</a>
</div>
</body>
</html>